<template>
  <view class="applyWayMain">
    <u-navbar
      title="机具政策设置"
      :background="{ background: '#fb4535' }"
      title-color="#fff"
      back-icon-color="#fff"
    >
      <view
        class="uNavBarRight"
        slot="right"
        @click="$u.route('/pages/zdzc/zdzcRecord')"
        >设置记录</view
      >
    </u-navbar>
    <view class="applyWayBox">
      <view class="zdzcItem flex align-center justify-between">
        <view class="shadow"></view>
        <text class="title">单个设置</text>
        <text class="btn" @tap="$u.route('/pages/zdzc/single')">立即设置</text>
      </view>
      <view class="zdzcItem flex align-center justify-between">
        <view class="shadow"></view>
        <text class="title">批量设置</text>
        <text class="btn" @tap="$u.route('/pages/zdzc/multiple')"
          >立即设置</text
        >
      </view>
    </view>
  </view>
</template>
<style lang="scss">
.applyWayMain {
  .uNavBarRight {
    padding-right: 30rpx;
    color: #fff;
  }
  .applyWayBox {
    padding: 30rpx;
    .zdzcItem {
      background: #fff;
      padding: 60rpx;
      margin-bottom: 30rpx;
      position: relative;
      overflow: hidden;
      .shadow {
        width: 400rpx;
        height: 440rpx;
        background-image: linear-gradient(#f1f1f1, #fff);
        transform: rotate(30deg);
        position: absolute;
        top: -200rpx;
        left: -100rpx;
      }
      .title {
        font-size: 32rpx;
        font-weight: bold;
        position: relative;
        z-index: 9;
      }
      .btn {
        display: block;
        width: 200rpx;
        height: 60rpx;
        border: 2rpx solid #fb4535;
        text-align: center;
        line-height: 56rpx;
        box-sizing: border-box;
        float: right;
        color: #fb4535;
      }
    }
  }
}
</style>
